<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ESM</title>
</head>
<body>
    <script type="module">
        // ESM模块有更严格的安全要求
        // 使用本地服务器运行 anywhere
        import calculate from "./b.js";
        console.log(calculate());
    </script>
</body>
</html>